package com.mall.sun.service.impl;

import com.mall.sun.model.dto.BaseChartDTO;
import com.mall.sun.model.po.Goodscategory;
import com.mall.sun.repository.mapper.GoodscategoryMapper;
import com.mall.sun.service.GoodscategoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Tansty
 * @since 2021-11-30
 */
@Service
public class GoodscategoryServiceImpl extends ServiceImpl<GoodscategoryMapper, Goodscategory> implements GoodscategoryService {
    @Autowired
    GoodscategoryMapper goodscategoryMapper;
    @Override
    public BaseChartDTO[] countCategory() {
        return goodscategoryMapper.countCategory();
    }

    @Override
    public Goodscategory[] getAll() {
        return goodscategoryMapper.getAll();
    }

    @Override
    public BaseChartDTO[] countGoodCategory() {
        return goodscategoryMapper.countGoodCategory();
    }
}
